package com.hqd.ch03.v11.beans;

import com.hqd.ch03.v11.beans.property.PropertyEditorRegistry;

/**
 * 类型转换接口，通常与{@link PropertyEditorRegistry}连用
 * {@link PropertyEditorRegistry}负责具体转换器的注册，删除
 * TypeConverter负责寻找具体的转换器进行转换
 */
public interface TypeConverter {
    <T> Object convertIfNecessary(Object value, Class<T> requiredType);
}
